import Index from "./Index/Index";
import Login from "./User/Login";
import "./common.css";
import { Routes, Route, BrowserRouter } from "react-router-dom";
import Forget from "@/User/Forget";
import Reg from "@/User/Reg";
import UserCommon from "@/User/UserCommon";

function App() {
  return (
    
    <BrowserRouter>
      {/* {alert("会自动播放音乐")} */}
      <div className={"main"}>
        <Routes>
          <Route path={"/"} element={<Index />} />
          <Route path={"/"} element={<UserCommon />}>
            <Route path={"login"} element={<Login />} />
            <Route path={"loginEmail"} element={<Login />} />
            <Route path={"forget"} element={<Forget />} />
            <Route path={"reg"} element={<Reg />} />
          </Route>
        </Routes>
      </div>
    </BrowserRouter>
  );
}

export default  App;
